Skip to content

Conversation

hborla
Copy link
Member

@hborla hborla commented May 25, 2021

Now that property wrapper initializer synthesis and checking is separated from creating the auxiliary variables, checking actor isolation from PropertyWrapperInitializerInfoRequest will not create a circular dependency.

This also fixes 2 bugs:

  • A local property wrapper crash due to effects checking never being done on default wrapper initializers.
  • Failing to check actor isolation on local property wrapper default initializers, allowing invalid code to compile.

I believe this still worked for properties because the auxiliary variables are actually inserted into the AST.

Resolves: rdar://74616133

hborla added 3 commits May 24, 2021 19:37
…lizer

effects in PropertyWrapperInitializerInfoRequest.

Now that property wrapper initializer synthesis and checking is separated
from creating the auxiliary variables, checking actor isolation from
PropertyWrapperInitializerInfoRequest will not create a circular dependency.

This also fixes a local property wrapper crash due to effects checking never
being done on synthesized default wrapper initializers.
…nerator

function for default-initialized local and static wrapped properties.
@hborla hborla requested review from slavapestov and DougGregor May 25, 2021 03:35
@hborla
Copy link
Member Author

hborla commented May 25, 2021

@swift-ci please smoke test

@hborla
Copy link
Member Author

hborla commented May 25, 2021

@swift-ci please test source compatibility

@hborla
Copy link
Member Author

hborla commented May 25, 2021

There's one source compatibility failure that's unrelated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants